using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using BUS;
using DTO;
using DAL;
using Utility ;

public partial class Doanhnghiep_UpdateHinh : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
    if (!IsPostBack)
        {
            LoadData();
        }
    }
    private void LoadData()
    {
        try
        {
            int id = int.Parse(Request.QueryString["id"].ToString());
            txt_mahinh.Text = id.ToString();

            tbHinhAnh ha = tbHinhAnhBUS.GetByID(id);
            img_HinhMinhHoa.ImageUrl = "~/Photos/Thumb/" + ha.hinhminhhoa;
        }
        catch
        {
        }
    }
    protected void Button1_Click(object sender, EventArgs e)
    {

    }
}
